翻訳と辞書
Words near each other
・ Fore River Transportation Corporation
・ Fore School of Management
・ Fore Store, Virginia
・ Fore Street
・ Fore Street (restaurant)
・ Fore Street, Chard
・ Fore Street, London
・ FORE Systems
・ Fore Wood
・ Fore!
・ Fore, County Westmeath
・ Fore, Father
・ Fore-and-aft rig
・ Fore-edge painting
・ Fore-Word Press
Foreach loop
・ Foreaker Covered Bridge
・ Forearc
・ Forearm
・ Forearm (comics)
・ Forearm (disambiguation)
・ Forearm (firearm component)
・ Forebay
・ Forebay (reservoir)
・ Forebay, California
・ Forebitter
・ Foreboding
・ Forebrain
・ Forebulge
・ Forebyggende Krig


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Foreach loop : ウィキペディア英語版
Foreach loop

For each (or foreach) is a computer language idiom for traversing items in a collection. Foreach is usually used in place of a standard for statement. Unlike other for loop constructs, however, foreach loops usually maintain no explicit counter: they essentially say "do this to everything in this set", rather than "do this ''x'' times". This avoids potential off-by-one errors and makes code simpler to read. In object-oriented languages an ()], even if implicit, is often used as the means of traversal.
== Syntax ==
Syntax varies among languages. Most use the simple word for, roughly as follows:
for each item in collection:
do something to item

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Foreach loop」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.